<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>节点详细信息</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords"
	content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript">
	
	 addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } 

</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<script src="js/jquery.min.js"></script>
<!-- Graph CSS -->
<!-- Nav CSS -->
<script type="text/javascript">
	function fun() {
		$("#myForm").submit();
	}
	function closeThisPage() {
		window.opener = null;
		window.open('', '_self');
		window.close();
	}
	$(function() {
		$(".release").click(function() {
			var url = this;
			var advise = prompt("请给出处理意见", "无意见");
			this.href = url + "&advise=" + advise;
		});
	});
</script>
</head>
<body>
	<div id="wrapper">
		<!-- Navigation -->
		<div id="page-wrapper">

			<div class="xs">
				<div class="well1 white">
					<h3 align="center">节点信息</h3>
					<table class="table">
						<tr>
							<th>上级相关节点</th>	
							<td>${nodeDetail.relatedNode.node_result }</td>	
						</tr>
						<tr>
							<th>节点版本</th>
							<td>V ${nodeDetail.node_version }</td>
							<th>节点专业类型</th>
							<td>${nodeDetail.nodeType.node_type }</td>
						</tr>
						<tr>
							<th>节点所属生命周期</th>
							<td>${nodeDetail.lc.name_lifecycle }</td>
							<th>节点生产来源</th>
							<td>${nodeDetail.nodeFileSource }</td>
						</tr>
						<tr>
							<th>是否考核节点</th>
							<td><c:if test="${nodeDetail.node_exam eq 0}">
										否
									</c:if> <c:if test="${nodeDetail.node_exam eq 1}">
										是
									</c:if></td>
							<th>是否里程碑节点</th>
							<td><c:if test="${nodeDetail.node_milestone eq 0}">
										否
									</c:if> <c:if test="${nodeDetail.node_milestone eq 1}">
										是
									</c:if></td>
						</tr>

						<tr>
							<th>节点关键度</th>
							<td>${nodeDetail.node_level }</td>
						</tr>

						<tr>
							<th>节点要求开始时间</th>
							<td>${fn:substring(nodeDetail.node_starttime, 0, 10) }</td>
							<th>节点要求结束时间</th>
							<td>${fn:substring(nodeDetail.node_endtime, 0, 10) }</td>
						</tr>

						<tr>
							<th>节点需要的工日</th>
							<td>${nodeDetail.node_workdays }</td>
							<th>节点成果形式</th>
							<td>${nodeDetail.node_result }</td>
						</tr>

						<tr>
							<th>节点责任部门</th>
							<td>${nodeDetail.department.dept_name}</td>
						</tr>

						<tr>
							<th>节点描述</th>
							<td colspan="3">${nodeDetail.node_describe }</td>
						</tr>

						<tr>
							<th>节点工作内容</th>
							<td colspan="3">要求在${fn:substring(nodeDetail.node_endtime,
								0, 10) }以前完成${nodeDetail.node_describe
								}，成果形式为：${nodeDetail.node_result }。</td>
						</tr>

						<tr>
							<th>节点备注</th>
							<td colspan="3">${nodeDetail.node_remark }</td>
						</tr>

					</table>

					<c:if test="${fn: length(releasedRecordList) != 0 }">
						<!-- 本节点检查记录 -->
						<hr />
						<h3>检查记录</h3>
						<table class="table table-condensed">
							<thead>
								<th>检查时间</th>
								<th>节点确认</th>
								<th>检查结果</th>
								<th>审核结果</th>
								<th>处理建议</th>
							</thead>
							<tbody>
								<c:forEach items="${releasedRecordList }" var="record">
									<c:if test="${record.releaseOrNot != 0 }">
										<tr>
											<td>${record.checkTime }</td>
											<td>${record.checkStatus==0 ? "未完成" : "已完成" }</td>
											<td>${record.checkResult }</td>
											<td><c:choose>
													<c:when test="${record.releaseOrNot == 0}">
													待审核
													</c:when>
													<c:when test="${record.releaseOrNot == 1}">
													已通过审核
													</c:when>
													<c:when test="${record.releaseOrNot == 2}">
													请求被驳回
													</c:when>
												</c:choose></td>
											<td>${record.advise }</td>
										</tr>
									</c:if>
								</c:forEach>
							</tbody>
						</table>
					</c:if>
					<div class="form-group" align="center">
						<button class="btn btn-primary" onclick="closeThisPage()">关闭</button>
					</div>
				</div>
			</div>
		</div>
		<!-- /#page-wrapper -->
	</div>
	<!-- /#wrapper -->
</body>
</html>
